.class Lcom/waiqin365/lightwork/directory/t;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightwork/directory/t;->a:Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const/4 v1, 0x0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightwork/directory/a/a/b;

    :try_start_0
    invoke-virtual {v0}, Lcom/waiqin365/lightwork/directory/a/a/b;->b()Z

    move-result v2

    if-eqz v2, :cond_0

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightwork/directory/a/a/b;->d:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/a/a/b;->f:Lorg/json/JSONObject;

    if-eqz v0, :cond_3

    const-string/jumbo v2, "extends"

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    if-eqz v2, :cond_2

    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v0

    if-lez v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/t;->a:Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;->a(Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;)Landroid/view/View;

    move-result-object v0

    const/4 v3, 0x0

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    move v0, v1

    :goto_1
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v1

    if-ge v0, v1, :cond_0

    invoke-virtual {v2, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v1

    new-instance v3, Lcom/waiqin365/lightwork/directory/view/PersonnelDetailsExtendView;

    iget-object v4, p0, Lcom/waiqin365/lightwork/directory/t;->a:Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;

    invoke-direct {v3, v4}, Lcom/waiqin365/lightwork/directory/view/PersonnelDetailsExtendView;-><init>(Landroid/content/Context;)V

    const-string/jumbo v4, "label"

    invoke-virtual {v1, v4}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string/jumbo v5, "value"

    invoke-virtual {v1, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v4, v1}, Lcom/waiqin365/lightwork/directory/view/PersonnelDetailsExtendView;->setLableContent(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    if-ne v0, v1, :cond_1

    const/4 v1, 0x0

    invoke-virtual {v3, v1}, Lcom/waiqin365/lightwork/directory/view/PersonnelDetailsExtendView;->a(Z)V

    :goto_2
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v4, -0x1

    const/4 v5, -0x2

    invoke-direct {v1, v4, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v4, p0, Lcom/waiqin365/lightwork/directory/t;->a:Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;

    invoke-static {v4}, Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;->b(Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4, v3, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_1
    const/4 v1, 0x1

    invoke-virtual {v3, v1}, Lcom/waiqin365/lightwork/directory/view/PersonnelDetailsExtendView;->a(Z)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0

    :cond_2
    :try_start_1
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/t;->a:Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;->a(Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;)Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_0

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/t;->a:Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;->a(Lcom/waiqin365/lightwork/directory/DirectoryPersonnelDetailsActivity;)Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
    .end packed-switch
.end method
